<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::StatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_stats_estimator.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classpcl_1_1_stats_estimator-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::StatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt; 模板类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>Class interface for gathering statistics for decision tree learning.  
 <a href="classpcl_1_1_stats_estimator.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="stats__estimator_8h_source.html">stats_estimator.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::StatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1_stats_estimator.png" usemap="#pcl::StatsEstimator_3C_20LabelDataType_2C_20NodeType_2C_20DataSet_2C_20ExampleIndex_20_3E_map" alt=""/>
  <map id="pcl::StatsEstimator_3C_20LabelDataType_2C_20NodeType_2C_20DataSet_2C_20ExampleIndex_20_3E_map" name="pcl::StatsEstimator_3C_20LabelDataType_2C_20NodeType_2C_20DataSet_2C_20ExampleIndex_20_3E_map">
<area href="classpcl_1_1_regression_variance_stats_estimator.html" title="Statistics estimator for regression trees which optimizes variance." alt="pcl::RegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;" shape="rect" coords="0,56,691,80"/>
<area href="classpcl_1_1face__detection_1_1_pose_class_regression_variance_stats_estimator.html" title="Statistics estimator for regression trees which optimizes information gain and pose parameters error." alt="pcl::face_detection::PoseClassRegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;" shape="rect" coords="701,56,1392,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa3ca14fa2a1a43861a0278370b165203"><td class="memItemLeft" align="right" valign="top"><a id="aa3ca14fa2a1a43861a0278370b165203"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_stats_estimator.html#aa3ca14fa2a1a43861a0278370b165203">~StatsEstimator</a> ()</td></tr>
<tr class="memdesc:aa3ca14fa2a1a43861a0278370b165203"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aa3ca14fa2a1a43861a0278370b165203"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aada85e9e1bc3116b661bd4f985843ca0"><td class="memItemLeft" align="right" valign="top"><a id="aada85e9e1bc3116b661bd4f985843ca0"></a>
virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_stats_estimator.html#aada85e9e1bc3116b661bd4f985843ca0">getNumOfBranches</a> () const =0</td></tr>
<tr class="memdesc:aada85e9e1bc3116b661bd4f985843ca0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of brances a node can have (e.g. a binary tree has 2). <br /></td></tr>
<tr class="separator:aada85e9e1bc3116b661bd4f985843ca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6caa1bf87f7cb0b697d4fc081f0339af"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_stats_estimator.html#a6caa1bf87f7cb0b697d4fc081f0339af">computeAndSetNodeStats</a> (DataSet &amp;data_set, std::vector&lt; ExampleIndex &gt; &amp;examples, std::vector&lt; LabelDataType &gt; &amp;label_data, NodeType &amp;node) const =0</td></tr>
<tr class="memdesc:a6caa1bf87f7cb0b697d4fc081f0339af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes and sets the statistics for a node.  <a href="classpcl_1_1_stats_estimator.html#a6caa1bf87f7cb0b697d4fc081f0339af">更多...</a><br /></td></tr>
<tr class="separator:a6caa1bf87f7cb0b697d4fc081f0339af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81eeb44edc44226e45e9559b8c6adf03"><td class="memItemLeft" align="right" valign="top">virtual LabelDataType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_stats_estimator.html#a81eeb44edc44226e45e9559b8c6adf03">getLabelOfNode</a> (NodeType &amp;node) const =0</td></tr>
<tr class="memdesc:a81eeb44edc44226e45e9559b8c6adf03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the label of the specified node.  <a href="classpcl_1_1_stats_estimator.html#a81eeb44edc44226e45e9559b8c6adf03">更多...</a><br /></td></tr>
<tr class="separator:a81eeb44edc44226e45e9559b8c6adf03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4794b4417d32e2844bb137ce7934f905"><td class="memItemLeft" align="right" valign="top">virtual float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_stats_estimator.html#a4794b4417d32e2844bb137ce7934f905">computeInformationGain</a> (DataSet &amp;data_set, std::vector&lt; ExampleIndex &gt; &amp;examples, std::vector&lt; LabelDataType &gt; &amp;label_data, std::vector&lt; float &gt; &amp;results, std::vector&lt; unsigned char &gt; &amp;flags, const float threshold) const =0</td></tr>
<tr class="memdesc:a4794b4417d32e2844bb137ce7934f905"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the information gain obtained by the specified threshold on the supplied feature evaluation results.  <a href="classpcl_1_1_stats_estimator.html#a4794b4417d32e2844bb137ce7934f905">更多...</a><br /></td></tr>
<tr class="separator:a4794b4417d32e2844bb137ce7934f905"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3fda8a830fbaded719ac28b2d6667bb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_stats_estimator.html#aa3fda8a830fbaded719ac28b2d6667bb">computeBranchIndices</a> (std::vector&lt; float &gt; &amp;results, std::vector&lt; unsigned char &gt; &amp;flags, const float threshold, std::vector&lt; unsigned char &gt; &amp;branch_indices) const =0</td></tr>
<tr class="memdesc:aa3fda8a830fbaded719ac28b2d6667bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the branch indices obtained by the specified threshold on the supplied feature evaluation results.  <a href="classpcl_1_1_stats_estimator.html#aa3fda8a830fbaded719ac28b2d6667bb">更多...</a><br /></td></tr>
<tr class="separator:aa3fda8a830fbaded719ac28b2d6667bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae91303f940dffa974c8f980fa8736426"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_stats_estimator.html#ae91303f940dffa974c8f980fa8736426">computeBranchIndex</a> (const float result, const unsigned char flag, const float threshold, unsigned char &amp;branch_index) const =0</td></tr>
<tr class="memdesc:ae91303f940dffa974c8f980fa8736426"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the branch indices obtained by the specified threshold on the supplied feature evaluation results.  <a href="classpcl_1_1_stats_estimator.html#ae91303f940dffa974c8f980fa8736426">更多...</a><br /></td></tr>
<tr class="separator:ae91303f940dffa974c8f980fa8736426"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66add9942c6d8ae7b911574d5ac1fe19"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_stats_estimator.html#a66add9942c6d8ae7b911574d5ac1fe19">generateCodeForBranchIndexComputation</a> (NodeType &amp;node, std::ostream &amp;stream) const =0</td></tr>
<tr class="memdesc:a66add9942c6d8ae7b911574d5ac1fe19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates code for computing the branch indices for the specified node and writes it to the specified stream.  <a href="classpcl_1_1_stats_estimator.html#a66add9942c6d8ae7b911574d5ac1fe19">更多...</a><br /></td></tr>
<tr class="separator:a66add9942c6d8ae7b911574d5ac1fe19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c3efd505d6c8e711522a3d4e2da60fb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_stats_estimator.html#a4c3efd505d6c8e711522a3d4e2da60fb">generateCodeForOutput</a> (NodeType &amp;node, std::ostream &amp;stream) const =0</td></tr>
<tr class="memdesc:a4c3efd505d6c8e711522a3d4e2da60fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates code for computing the output for the specified node and writes it to the specified stream.  <a href="classpcl_1_1_stats_estimator.html#a4c3efd505d6c8e711522a3d4e2da60fb">更多...</a><br /></td></tr>
<tr class="separator:a4c3efd505d6c8e711522a3d4e2da60fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;class LabelDataType, class NodeType, class DataSet, class ExampleIndex&gt;<br />
class pcl::StatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</h3>

<p>Class interface for gathering statistics for decision tree learning. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a6caa1bf87f7cb0b697d4fc081f0339af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6caa1bf87f7cb0b697d4fc081f0339af">&#9670;&nbsp;</a></span>computeAndSetNodeStats()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelDataType , class NodeType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classpcl_1_1_stats_estimator.html">pcl::StatsEstimator</a>&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;::computeAndSetNodeStats </td>
          <td>(</td>
          <td class="paramtype">DataSet &amp;&#160;</td>
          <td class="paramname"><em>data_set</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; ExampleIndex &gt; &amp;&#160;</td>
          <td class="paramname"><em>examples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; LabelDataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>label_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NodeType &amp;&#160;</td>
          <td class="paramname"><em>node</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes and sets the statistics for a node. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data_set</td><td>The data set used for training. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">examples</td><td>The examples used for computing the statistics for the specified node. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">label_data</td><td>The labels corresponding to the examples. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">node</td><td>The destination node for the statistics. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1face__detection_1_1_pose_class_regression_variance_stats_estimator.html#aa27bf41909f401c9aaaea96693eba5fb">pcl::face_detection::PoseClassRegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> , 以及 <a class="el" href="classpcl_1_1_regression_variance_stats_estimator.html#a269548f1ae1f8c96b27ab71657763393">pcl::RegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<a id="ae91303f940dffa974c8f980fa8736426"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae91303f940dffa974c8f980fa8736426">&#9670;&nbsp;</a></span>computeBranchIndex()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelDataType , class NodeType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classpcl_1_1_stats_estimator.html">pcl::StatsEstimator</a>&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;::computeBranchIndex </td>
          <td>(</td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned char&#160;</td>
          <td class="paramname"><em>flag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>threshold</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char &amp;&#160;</td>
          <td class="paramname"><em>branch_index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the branch indices obtained by the specified threshold on the supplied feature evaluation results. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">result</td><td>The result obtained from the feature evaluation. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">flag</td><td>The flag obtained together with the result. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold</td><td>The threshold which is used to compute the branch index. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">branch_index</td><td>The destination for the computed branch index. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1face__detection_1_1_pose_class_regression_variance_stats_estimator.html#a5f5d4b1e73621420129b70c12f7b375a">pcl::face_detection::PoseClassRegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> , 以及 <a class="el" href="classpcl_1_1_regression_variance_stats_estimator.html#a34daa4a214600dca0b200580280633af">pcl::RegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<a id="aa3fda8a830fbaded719ac28b2d6667bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3fda8a830fbaded719ac28b2d6667bb">&#9670;&nbsp;</a></span>computeBranchIndices()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelDataType , class NodeType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classpcl_1_1_stats_estimator.html">pcl::StatsEstimator</a>&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;::computeBranchIndices </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>results</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; unsigned char &gt; &amp;&#160;</td>
          <td class="paramname"><em>flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>threshold</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; unsigned char &gt; &amp;&#160;</td>
          <td class="paramname"><em>branch_indices</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the branch indices obtained by the specified threshold on the supplied feature evaluation results. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">results</td><td>The results obtained from the feature evaluation. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The flags obtained together with the results. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold</td><td>The threshold which is used to compute the branch indices. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">branch_indices</td><td>The destination for the computed branch indices. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1face__detection_1_1_pose_class_regression_variance_stats_estimator.html#a4bd8fe3020b0adb041b68bcb01477dd8">pcl::face_detection::PoseClassRegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> , 以及 <a class="el" href="classpcl_1_1_regression_variance_stats_estimator.html#a5de2e6cbeff519afd171414f66a953aa">pcl::RegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<a id="a4794b4417d32e2844bb137ce7934f905"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4794b4417d32e2844bb137ce7934f905">&#9670;&nbsp;</a></span>computeInformationGain()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelDataType , class NodeType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual float <a class="el" href="classpcl_1_1_stats_estimator.html">pcl::StatsEstimator</a>&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;::computeInformationGain </td>
          <td>(</td>
          <td class="paramtype">DataSet &amp;&#160;</td>
          <td class="paramname"><em>data_set</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; ExampleIndex &gt; &amp;&#160;</td>
          <td class="paramname"><em>examples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; LabelDataType &gt; &amp;&#160;</td>
          <td class="paramname"><em>label_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>results</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; unsigned char &gt; &amp;&#160;</td>
          <td class="paramname"><em>flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>threshold</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the information gain obtained by the specified threshold on the supplied feature evaluation results. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data_set</td><td>The data set used for extracting the supplied result values. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">examples</td><td>The examples used to extract the supplied result values. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">label_data</td><td>The labels corresponding to the examples. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">results</td><td>The results obtained from the feature evaluation. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The flags obtained together with the results. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold</td><td>The threshold which is used to compute the information gain. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1face__detection_1_1_pose_class_regression_variance_stats_estimator.html#a99c1a899a7a6336508dc54b4d2445229">pcl::face_detection::PoseClassRegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> , 以及 <a class="el" href="classpcl_1_1_regression_variance_stats_estimator.html#a7c5c4efbb4ac50525954aae8b8389995">pcl::RegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<a id="a66add9942c6d8ae7b911574d5ac1fe19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66add9942c6d8ae7b911574d5ac1fe19">&#9670;&nbsp;</a></span>generateCodeForBranchIndexComputation()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelDataType , class NodeType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classpcl_1_1_stats_estimator.html">pcl::StatsEstimator</a>&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;::generateCodeForBranchIndexComputation </td>
          <td>(</td>
          <td class="paramtype">NodeType &amp;&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Generates code for computing the branch indices for the specified node and writes it to the specified stream. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>The node for which the branch index estimation code is generated. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">stream</td><td>The destionation for the code. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1_regression_variance_stats_estimator.html#ab5d5128e679e2d1a252e376cf1bf856d">pcl::RegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> , 以及 <a class="el" href="classpcl_1_1face__detection_1_1_pose_class_regression_variance_stats_estimator.html#a965ac0738f571aae26a3f52ccbf26f8f">pcl::face_detection::PoseClassRegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<a id="a4c3efd505d6c8e711522a3d4e2da60fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c3efd505d6c8e711522a3d4e2da60fb">&#9670;&nbsp;</a></span>generateCodeForOutput()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelDataType , class NodeType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classpcl_1_1_stats_estimator.html">pcl::StatsEstimator</a>&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;::generateCodeForOutput </td>
          <td>(</td>
          <td class="paramtype">NodeType &amp;&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Generates code for computing the output for the specified node and writes it to the specified stream. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>The node for which the output estimation code is generated. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">stream</td><td>The destionation for the code. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1_regression_variance_stats_estimator.html#a11783c9d3b7e5a81b91b17d290ae4950">pcl::RegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> , 以及 <a class="el" href="classpcl_1_1face__detection_1_1_pose_class_regression_variance_stats_estimator.html#a387f6dafb7ca51c20793fab106b202e1">pcl::face_detection::PoseClassRegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<a id="a81eeb44edc44226e45e9559b8c6adf03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81eeb44edc44226e45e9559b8c6adf03">&#9670;&nbsp;</a></span>getLabelOfNode()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelDataType , class NodeType , class DataSet , class ExampleIndex &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual LabelDataType <a class="el" href="classpcl_1_1_stats_estimator.html">pcl::StatsEstimator</a>&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;::getLabelOfNode </td>
          <td>(</td>
          <td class="paramtype">NodeType &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the label of the specified node. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>The node from which the label is extracted. </td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="classpcl_1_1face__detection_1_1_pose_class_regression_variance_stats_estimator.html#af483f527511dd87173ff5c4dd130340e">pcl::face_detection::PoseClassRegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> , 以及 <a class="el" href="classpcl_1_1_regression_variance_stats_estimator.html#a3701ce301bd5fbd96aa7ee8ce6c2dc29">pcl::RegressionVarianceStatsEstimator&lt; LabelDataType, NodeType, DataSet, ExampleIndex &gt;</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>ml/include/pcl/ml/<a class="el" href="stats__estimator_8h_source.html">stats_estimator.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_stats_estimator.html">StatsEstimator</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
